<?php
	require_once 'models/models_thongke.php';
	$mod = $_GET['mod'];
	$obTK = new models_tkkhachhang();
	require_once 'models/models_khachhang.php';
	$obKH = new models_khachhang();
	require_once 'models/models_mathang.php';
	$obMh = new models_mathang();
	switch ($mod){
		case 'tk_khachhang':{
			if($_POST){
				$data['list'] = $obTK->_listKhachHang($_POST['cmb_chon']);
			}
			require 'views/admin/thongke/views_tkkhachhang.php';
			break;
		}
		case 'tk_hangton':{
			$data['listmh'] = $obMh->listMatHang();
			$data['listht'] = $obTK->_listHangTon();
			require_once 'views/admin/thongke/tk_hanton.php';
		}
	}
?>